var express=require('express');
var app=express()

app.use(express.static('public'));


app.get('/login',function (req,res) {
    var username=req.query.username
    var userpass=req.query.userpass

    if (username=='张三'&&userpass==123) {
        res.send('登录成功')
    } else {
        res.send('登录失败')
    }
})



app.listen(5555, function(){
    console.log('服务器启动...');
});